<<<<<<< HEAD
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/27
 * Time: 15:52
 */

namespace app\index\model;


class Category extends Base
{
    protected $table = 'sy_category';

    public function img()
    {
        return $this->belongsTo('Image', 'topic_img_id', 'id');
    }
=======
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/27
 * Time: 15:52
 */

namespace app\index\model;


class Category extends Base
{
    protected $table = 'sy_category';

    public function img()
    {
        return $this->belongsTo('Image', 'topic_img_id', 'id');
    }
>>>>>>> 93c40d8086b7a8d5a9aa3548fdc8eb06a4272cf7
}